class BootStrapForm(object):
    """Form样式类"""
    no_widget_list = []

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        for k, field in self.fields.items():
            if k not in self.no_widget_list:
                field.widget.attrs = {'class': 'form-control', 'placeholder': '请输入{}'.format(field.label)}
